﻿<Window x:Class="Mskold.IterationManager.ChangeIteration"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:vm="clr-namespace:Mskold.IterationManager"
        Title="Change Current Iteration" Height="227" Width="584" xmlns:my="clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Shell.10.0" WindowStartupLocation="CenterOwner">
    <Window.Resources>
        <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter1" />
        <my:BooleanToHiddenVisibilityConverter x:Key="BooleanToHiddenVisibilityConverter1" />
    </Window.Resources>
    <Window.DataContext >
        <vm:ChangeIterationViewModel     />
    </Window.DataContext>
    <Grid>
        <StackPanel >
            <Grid Name="grdChangeIteration" >
                <Button Content="Cancel" Height="23" HorizontalAlignment="Left" Margin="402,53,0,0" Name="cmdCancel" VerticalAlignment="Top" Width="148" Click="cmdCancel_Click" />
                <Button Content="Change Current Iteration" Height="23" HorizontalAlignment="Left" Margin="402,20,0,0" Name="cmdOk" VerticalAlignment="Top" Width="148" Click="cmdOk_Click" />
                <Grid Height="100" HorizontalAlignment="Left" Margin="12,20,0,0" Name="grid1" VerticalAlignment="Top" Width="Auto">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>


                    <Label Content="Current iteration:" Height="28" HorizontalAlignment="Left"  Name="label1" VerticalAlignment="Top" Grid.Column="0" Grid.Row="0"/>
                    <Label Content="{Binding Path=CurrentIterationPath}"  Width="Auto" Height="28" HorizontalAlignment="Left"  Name="label3" VerticalAlignment="Top" Grid.Column="1" Grid.Row="0"/>
                    <Label Content="Change to iteration:" Height="28" HorizontalAlignment="Left"  Name="label2" VerticalAlignment="Top" Grid.Column="0" Grid.Row="1"/>
                    <ComboBox Height="23" HorizontalAlignment="Left" Width="250 "  Name="cboChangeToIteration" VerticalAlignment="Top"    Grid.Column="1" Grid.Row="1" ItemsSource="{Binding Path=Iterations}" SelectedValuePath="Key" DisplayMemberPath="Value" SelectedValue="{Binding Path=ChangeToIteration, Mode=TwoWay}" />
                    <Label Content="Actions:" Grid.Row="2" Height="28" HorizontalAlignment="Left"  Name="label4" VerticalAlignment="Top" />
                    <ListBox Grid.Column="1" Grid.Row="2" HorizontalAlignment="Left" Margin="0,4,0,0" Name="listBox1" VerticalAlignment="Top" ItemsSource="{Binding Path=ActionTitles}" ToolTip=""  IsEnabled="True" BorderBrush="{x:Null}" Background="{x:Null}" SelectionMode="Extended" />

                </Grid>
            </Grid>

            <Grid Name="grdNoCurrentIterationConfig" >
                <StackPanel HorizontalAlignment="Center">
                    <Label Content="Sorry this feature is not configured, therefor you can not use it."/>
                    <Button Content="Close" Height="23"   Name="cmdClose" VerticalAlignment="Top" Width="148" Click="cmdCancel_Click" />
                </StackPanel>
            </Grid>
        </StackPanel>

    </Grid>
    
</Window>
